package edu.learn.service.impl;


import edu.learn.entity.Address;
import edu.learn.mapper.AddressMapper;
import edu.learn.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IAddressSerivceImpl implements IAddressService {
    @Autowired
    AddressMapper addressMapper;

    @Override
    public void insertOne(Address address) {
        addressMapper.addAddress(address);
    }

    @Override
    public Address findAddressById(Long id) {
        Address address = addressMapper.findAddressById(id);
        return address;
    }
}
